package br.com.strings_serializacao;

public class Programa24 {
	public static void main(String[] args) {
		StringBuffer x = new StringBuffer("Teste");
		System.out.println(x);
		x.append(" Java");
		System.out.println(x);
		StringBuilder y = new StringBuilder("Certificacao");
		System.out.println(y);
		y.delete(0, 2);//remove do indice 0 ate o indice 2, mas nao remove o elemento
		//no indice 2
		System.out.println(y);
		y.append(" Java");
		System.out.println(y);
		y.insert(0, "Ce");
		System.out.println(y);
	}
}
